#region Copyright RenGuiYou. All rights reserved.
//=====================================================
// PandoraFrameWork
// Author:      RenGuiyou
// Feedback: 	mailto:750539605@qq.com
//=====================================================
#endregion
using UnityEditor;
using UnityEngine;

namespace PandoraEditor
{
    public static class PdrExecuteHelper
    {
        public static void ExecuteAssetOperate(System.Action<Object> action, SelectionMode Mode = SelectionMode.Deep)
        {
            PdrWindowHelper.ClearConsole();
            Object[] items = Selection.GetFiltered(typeof(Object), Mode);
            foreach (var item in items)
            {
                Debug.Log(item);
                action(item);
            }
            Debug.Log("----------------Finish----------------");
        }
    }
}
